﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberCardRuleDetail.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.MemberCard.MemberCardRuleDetail" %>


<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Shop/MemberCard/MemberCardRuleDetail.aspx">
    <script type="text/javascript">
        function SelKind() {
            if ($("#slt_kind").val()=="timecard")
           {
               $("#dl_time").css("display", "block");
               $("#dl_cash").css("display", "none");
           } else if ($("#slt_kind").val() == "cashcard") {
               $("#dl_time").css("display", "none");
               $("#dl_cash").css("display", "block");
           }
           else if ($("#slt_kind").val() == "normalcard") {
               $("#dl_time").css("display", "none");
               $("#dl_cash").css("display", "none");
           }
        }
    </script>
    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">
		   

        <dl class="nowrap">
            <dt>标题：</dt>
            <dd><input type=text name="Title" class="required" value="<%=cardRule==null?"":cardRule.Title %>"></dd>
        </dl>    
        
        <dl class="nowrap">
            <dt>类别：</dt>
            <dd>
                 <asp:DropDownList runat="server" id="ddl_member_card_kind"></asp:DropDownList>
            </dd>
        </dl> 
        <dl class="nowrap">
            <dt>卡号前缀：</dt>
            <dd><input type=text  width="100px" name="HeadChar" class=" required" value="<%=cardRule==null?"":cardRule.HeadChar %>"></dd>
        </dl>     

        <dl class="nowrap">
            <dt>简介：</dt>
            <dd><input type="text"   style="width:300px;" name="Description" class=" " value="<%=cardRule==null?"":cardRule.Description %>"><span class="info">（建议13个汉字以内）</span></dd>
              </dl>
              
               <dl class="nowrap">
            <dt>有效期：</dt>
            <dd>  <table border="0" cellspacing="0" cellpadding="0">
            	<tr>
            		<td><asp:TextBox ID="txt_start" runat="server" class="required date" format="yyyy-MM-dd"></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a></td>
                    <td>至</td>
                    <td>  <asp:TextBox ID="txt_end" runat="server" class="required date" format="yyyy-MM-dd"></asp:TextBox><a class="inputDateButton" href="javascript:;">选择</a>
                    </td>
            </table></dd>
              </dl>
                   <dl class="nowrap" id="dl_time" style="<%= (cardRule==null?"":cardRule.Kind)=="timecard"?"display:block;":"display:none;"  %>">
            <dt>次数：</dt>
            <dd>
              <asp:textbox runat="server"  width="150px" class="number" name="Times" id="txt_times" >0</asp:textbox>
            <span class="info"></span></dd>
              </dl>
               <dl class="nowrap" id="dl_cash"  style='<%= (cardRule==null?"":cardRule.Kind)=="cashcard"?"display:block;":"display:none;"  %>'>
            <dt>金额：</dt>
            <dd>
            <asp:textbox runat="server"  width="150px" class="number"  name="Balance" id="txt_balance" >0</asp:textbox>
            <span class="info"></span></dd>
              </dl>   
                 <dl class="nowrap" >
            <dt>是否默认配置：</dt>
            <dd>
           <asp:checkbox runat="server" id="ckb_is_defauld"></asp:checkbox>
            <span class="info"></span></dd>
              </dl>
              <dl class="nowrap">
            <dt>说明：</dt>
            <dd>
            <textarea name="Memo" cols="60" rows="4" class=""><%=cardRule == null ? "" : cardRule.Memo%></textarea>
            </dd>
        </dl>   
            <dl class="nowrap">
            <dt>详细信息：</dt>
            <dd><textarea class="editor" rows="10" cols="75" style="width: 100%" id="txt_Content" runat="Server" name="Content"
                    uplinkurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=zip,rar,txt" uplinkext="zip,rar,txt"
                    upimgurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=jpg,jpeg,gif,png" upimgext="jpg,jpeg,gif,png"
                    upflashurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=swf" upflashext="swf"
                    upmediaurl="/SystemManage/Common/ContentUpload.aspx?dir=doc&ext=avi" upmediaext="avi">
                </textarea></dd>
        </dl>    
        

	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('0');" type="submit">保存</button></div></div>
            </li>
			<%--<li>
		    <div class="button"><div class="buttonContent">
		    <button type="button" onclick="navTab.openTab('CouponTicketDetail', '/SystemManage/Basics/Shop/Coupon/CouponTicketDetail.aspx',{data:{tabid:'CouponTicketDetail'}});">取消并新增</button></div></div>
			</li>
            <li>
	        <div class="buttonActive"><div class="buttonContent"><button onclick="$('#submit_op', navTab.getCurrentPanel()).val('1');" type="submit">保存并新增</button></div></div>
            </li>--%>
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>